import axios from '@/libs/api.request'

export const getList = info => {
  return axios.request({
    url: 'coupon/getList',
    data: info,
    method: 'post'
  })
}


export const add = info => {
  return axios.request({
    url: 'coupon/add',
    data: info,
    method: 'post'
  })
}

export const put = info => {
  return axios.request({
    url: 'coupon/edit',
    data: info,
    method: 'post'
  })
}

export const del = info => {
  return axios.request({
    url: 'coupon/delete',
    data: info,
    method: 'post'
  })
}
export const build = info => {
  return axios.request({
    url: 'coupon/build',
    data: info,
    method: 'post'
  })
}
 //状态切换  推荐
 export const change = info => {
   return axios.request({
     url: 'coupon/estate',
     data: info,
     method: 'post'
   })
 }
